package com.example.internetplus.aop;

import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ControllerAspect {
    @Pointcut("@annotation(org.springframework.web.bind.annotation.RestController)")
    public void aopCut(){

    }
    @Before("aopCut()")
    public void roleCheck(){

    }
}
